package org.streets.eis.pages;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.model.IModel;

import org.streets.eis.component.messagebox.MessageBox;

/** 
 *
 * @author dzb
 * @version 
 */

public class BasePage extends WebPage {
	
	private MessageBox messageBox;
	
    /**
     * Constructor
     */
    public BasePage() {
        super();
        initBasePage();
    }
    
    public BasePage(PageParameters params) {
    	super(params);
    	initBasePage();
    }
    /**
     * Construct.
     * @param model
     */
    public BasePage(IModel<?> model) {
        super(model);
        initBasePage();
    }
    
    protected void initBasePage(){
    	setOutputMarkupId(true);
        add(messageBox = new MessageBox("MessageBox"));
    }
    
    public MessageBox getMessageBox(){
    	return messageBox;
    }

}
